package ro.imc.student_interface.domnica_dan;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

@SuppressWarnings("serial")
public class Student extends JFrame{
	
	private JPanel panel;
	private JLabel firstNameLabel;
	private JLabel lastNameLabel;
	private JLabel idLabel;
	private JLabel studentNumberLabel;
	private JLabel statusLabel;
	
	private JTextField firstNameTextField;
	private JTextField lastNameTextField;
	private JTextField idTextField;
	private JTextField studentNumberTextField;
	private JTextField statusTextField;
	
	private JButton saveStudentButton;
	
	public Student(){
		
		panel = new JPanel(new GridLayout(0,2));
		firstNameLabel = new JLabel("First Name:");
		firstNameTextField = new JTextField();
		
		lastNameLabel = new JLabel("Last Name:");
		lastNameTextField = new JTextField();
		
		idLabel = new JLabel("ID:");
		idTextField = new JTextField();
		
		studentNumberLabel = new JLabel("Student Number:");
		studentNumberTextField = new JTextField();
		
		statusLabel = new JLabel("Status:");
		statusTextField = new JTextField();

		saveStudentButton = new JButton("Save");
		
	
		panel.add(firstNameLabel);
		panel.add(firstNameTextField);
		panel.add(lastNameLabel);
		panel.add(lastNameTextField);
		panel.add(idLabel);
		panel.add(idTextField);
		panel.add(studentNumberLabel);
		panel.add(studentNumberTextField);
		panel.add(statusLabel);
		panel.add(statusTextField);
		panel.add(saveStudentButton);
		this.add(panel);
	
	}
	
	
	
	
}
